package com.bilifuture.statemachine.message;

import lombok.Builder;
import lombok.Data;

/**
 * @author bilifuture
 * @description:
 * @date 2022-02-23
 */
@Data
@Builder
public class Response {
    public static final int SUCCESS = 200;
    public static final int FAILURE = 500;
    
    private int code;
    
    private Object body;
    
    private String message;
    
    public boolean isSuccess() {
        return this.code == SUCCESS;
    }
    
    
}
